package cn.jingyinghui.rules.customer;


public class Customer {
    private String name;
    private int age;
    private boolean canBuyAlcohol;

    public Customer(String name, int age) {
        this.name = name;
        this.age = age;
    }

    // Getters and Setters
    public String getName() { return name; }
    public int getAge() { return age; }
    public boolean isCanBuyAlcohol() { return canBuyAlcohol; }
    public void setCanBuyAlcohol(boolean canBuyAlcohol) { this.canBuyAlcohol = canBuyAlcohol; }

    @Override
    public String toString() {
        return "Customer{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", canBuyAlcohol=" + canBuyAlcohol +
                '}';
    }
}